export interface Post {
  (url: string, params?: {
    headers?: Object,
    payload?: Object,
    [k: string]: any
  }): Promise<any>
}

export const post: Post = (url, params) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve('成功')
    }, 300)
  })
}